<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>资深前端开发工程师 - 职位详情</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #7209b7;
            --secondary: #f72585;
            --success: #38b000;
            --warning: #ffaa00;
            --danger: #e63946;
            --text-primary: #212529;
            --text-secondary: #6c757d;
            --text-tertiary: #adb5bd;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --bg-gray: #e9ecef;
            --border-light: #dee2e6;
            --radius: 10px;
            --radius-sm: 6px;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 70px;
            line-height: 1.6;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 职位头部信息 */
        .job-header {
            background-color: var(--bg-white);
            padding: 16px;
            margin-bottom: 12px;
        }
        
        .job-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
            line-height: 1.3;
        }
        
        .job-company {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .company-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .company-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .company-info {
            flex: 1;
        }
        
        .company-name {
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .company-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .job-salary {
            color: var(--secondary);
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px 16px;
            margin-bottom: 16px;
            font-size: 0.9rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-secondary);
        }
        
        .meta-icon {
            color: var(--primary);
            font-size: 1rem;
        }
        
        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .job-tag {
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 0.8rem;
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }
        
        .job-tag.hot {
            background-color: rgba(247, 37, 133, 0.1);
            color: var(--secondary);
        }
        
        /* 职位详情内容 */
        .job-content {
            background-color: var(--bg-white);
            padding: 16px;
            margin-bottom: 12px;
            border-radius: var(--radius);
        }
        
        .content-section {
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-title i {
            color: var(--primary);
        }
        
        .section-content {
            font-size: 0.95rem;
            color: var(--text-secondary);
        }
        
        .section-content p {
            margin-bottom: 12px;
            line-height: 1.7;
        }
        
        .section-content ul {
            padding-left: 20px;
            margin-bottom: 12px;
        }
        
        .section-content li {
            margin-bottom: 8px;
            line-height: 1.7;
        }
        
        /* 公司图片展示 */
        .company-gallery {
            margin-bottom: 16px;
        }
        
        .gallery-title {
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 10px;
            color: var(--text-primary);
        }
        
        .gallery-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            border-radius: var(--radius-sm);
            overflow: hidden;
        }
        
        .gallery-image {
            aspect-ratio: 1;
            overflow: hidden;
        }
        
        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 联系按钮区域 */
        .contact-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            border-top: 1px solid var(--border-light);
            z-index: 999;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 0.75rem;
            width: 50px;
        }
        
        .action-btn i {
            font-size: 1.2rem;
        }
        
        .action-btn.active {
            color: var(--primary);
        }
        
        .contact-btn {
            flex: 1;
            max-width: 200px;
            padding: 10px 0;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
        }
        
        /* 相似职位推荐 */
        .similar-jobs {
            background-color: var(--bg-white);
            padding: 16px;
            margin-bottom: 12px;
            border-radius: var(--radius);
        }
        
        .job-card {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
        }
        
        .job-card:last-child {
            border-bottom: none;
        }
        
        .similar-job-title {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-primary);
        }
        
        .similar-job-company {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }
        
        .similar-job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }
        
        /* 留言区 */
        .comments-section {
            background-color: var(--bg-white);
            padding: 16px;
            margin-bottom: 80px;
            border-radius: var(--radius);
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .comments-count {
            font-weight: 600;
        }
        
        .sort-comments {
            font-size: 0.85rem;
            color: var(--primary);
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-input-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-input-wrapper {
            flex: 1;
        }
        
        .comment-input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 20px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-light);
            font-size: 0.9rem;
            outline: none;
            resize: none;
            height: 40px;
        }
        
        .comment-input:focus {
            border-color: var(--primary);
            background-color: var(--bg-white);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 8px;
        }
        
        .comment-action {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-submit {
            color: var(--primary);
            font-weight: 500;
        }
        
        .comment-list {
            margin-top: 16px;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
        }
        
        .comment-author {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .comment-time {
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }
        
        .comment-text {
            background-color: var(--bg-light);
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            margin-bottom: 8px;
        }
        
        .comment-footer {
            display: flex;
            gap: 16px;
            font-size: 0.8rem;
        }
        
        .comment-action-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-action-btn.active {
            color: var(--secondary);
        }
        
        /* 回复区 */
        .replies {
            margin-left: 46px;
            margin-top: 12px;
        }
        
        .reply-item {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }
        
        .reply-author {
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        .reply-time {
            font-size: 0.7rem;
            color: var(--text-tertiary);
        }
        
        .reply-text {
            background-color: var(--bg-light);
            padding: 8px 10px;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            margin-bottom: 6px;
        }
        
        .reply-footer {
            display: flex;
            gap: 12px;
            font-size: 0.75rem;
        }
        
        .reply-form {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            margin-left: 46px;
        }
        
        .reply-input {
            flex: 1;
            padding: 8px 12px;
            border-radius: 16px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-light);
            font-size: 0.85rem;
            outline: none;
        }
        
        .reply-submit {
            color: var(--primary);
            background: none;
            border: none;
            font-size: 0.85rem;
            font-weight: 500;
            padding: 0 8px;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 分享弹窗 */
        .share-modal {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--bg-white);
            border-top-left-radius: var(--radius);
            border-top-right-radius: var(--radius);
            padding: 16px;
            z-index: 1010;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .share-modal.open {
            transform: translateY(0);
        }
        
        .modal-title {
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .share-options {
            display: flex;
            justify-content: space-around;
            margin-bottom: 20px;
        }
        
        .share-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.85rem;
        }
        
        .share-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }
        
        .cancel-share {
            width: 100%;
            padding: 12px 0;
            background-color: var(--bg-gray);
            border: none;
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            font-weight: 500;
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1005;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .modal-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">职位详情</div>
        <button class="nav-action primary" id="shareBtn">
            <i class="fas fa-share-alt"></i>
        </button>
    </div>
    
    <!-- 职位头部信息 -->
    <div class="job-header">
        <div class="job-title">资深前端开发工程师</div>
        
        <div class="job-salary">15k-25k · 13薪及以上</div>
        
        <div class="job-meta">
            <div class="meta-item">
                <i class="fas fa-map-marker-alt meta-icon"></i>
                <span>朝阳区 · 距离2.5km</span>
            </div>
            <div class="meta-item">
                <i class="fas fa-briefcase meta-icon"></i>
                <span>全职</span>
            </div>
            <div class="meta-item">
                <i class="fas fa-clock meta-icon"></i>
                <span>3-5年</span>
            </div>
            <div class="meta-item">
                <i class="fas fa-graduation-cap meta-icon"></i>
                <span>本科</span>
            </div>
            <div class="meta-item">
                <i class="fas fa-bus meta-icon"></i>
                <span>地铁10号线直达</span>
            </div>
        </div>
        
        <div class="job-tags">
            <span class="job-tag">React</span>
            <span class="job-tag">Vue</span>
            <span class="job-tag">JavaScript</span>
            <span class="job-tag">Webpack</span>
            <span class="job-tag hot">急聘</span>
        </div>
        
        <div class="job-company">
            <div class="company-logo">
                <img src="https://picsum.photos/id/28/200/200" alt="公司Logo">
            </div>
            <div class="company-info">
                <div class="company-name">科技有限公司</div>
                <div class="company-meta">
                    <span>互联网</span>
                    <span>·</span>
                    <span>500-1000人</span>
                    <span>·</span>
                    <span>B轮</span>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 职位详情内容 -->
    <div class="job-content">
        <div class="content-section">
            <div class="section-title">
                <i class="fas fa-list-check"></i>
                <span>职位描述</span>
            </div>
            <div class="section-content">
                <p>我们正在寻找一位资深前端开发工程师加入我们的团队，负责公司核心产品的前端架构设计和开发工作。如果你对前端技术有热情，追求代码质量，乐于解决复杂问题，欢迎加入我们！</p>
                <ul>
                    <li>负责公司Web产品的前端架构设计、开发和优化</li>
                    <li>与产品经理、设计师和后端工程师紧密合作，实现高质量的用户体验</li>
                    <li>持续优化前端性能，解决各种浏览器兼容性问题</li>
                    <li>参与技术方案讨论和评审，推动前端工程化和规范化</li>
                    <li>指导初级开发工程师，提升团队整体技术水平</li>
                </ul>
            </div>
        </div>
        
        <div class="content-section">
            <div class="section-title">
                <i class="fas fa-user-graduate"></i>
                <span>任职要求</span>
            </div>
            <div class="section-content">
                <ul>
                    <li>计算机相关专业本科及以上学历，3年以上前端开发经验</li>
                    <li>精通HTML5、CSS3、JavaScript，熟悉各种前端标准和规范</li>
                    <li>深入理解React或Vue等主流前端框架的原理和使用</li>
                    <li>熟悉前端工程化工具，如Webpack、Vite等</li>
                    <li>有大型Web应用开发经验，了解前端性能优化策略</li>
                    <li>良好的沟通能力和团队协作精神，具备解决复杂问题的能力</li>
                </ul>
            </div>
        </div>
        
        <div class="content-section">
            <div class="section-title">
                <i class="fas fa-gift"></i>
                <span>公司福利</span>
            </div>
            <div class="section-content">
                <ul>
                    <li>有竞争力的薪资和绩效奖金，13薪+年终奖</li>
                    <li>五险一金，补充商业保险，年度体检</li>
                    <li>弹性工作制度，周末双休，法定节假日</li>
                    <li>丰富的团队建设活动，年度旅游</li>
                    <li>完善的培训体系和职业发展通道</li>
                    <li>舒适的办公环境，零食饮料无限供应</li>
                </ul>
            </div>
        </div>
        
        <div class="company-gallery">
            <div class="gallery-title">公司环境（3张）</div>
            <div class="gallery-images">
                <div class="gallery-image">
                    <img src="https://picsum.photos/id/10/300/300" alt="公司环境">
                </div>
                <div class="gallery-image">
                    <img src="https://picsum.photos/id/11/300/300" alt="公司环境">
                </div>
                <div class="gallery-image">
                    <img src="https://picsum.photos/id/12/300/300" alt="公司环境">
                </div>
            </div>
        </div>
    </div>
    
    <!-- 相似职位推荐 -->
    <div class="similar-jobs">
        <div class="section-title">
            <i class="fas fa-thumbs-up"></i>
            <span>相似职位推荐</span>
        </div>
        
        <div class="job-card">
            <div class="similar-job-title">高级前端开发工程师</div>
            <div class="similar-job-company">互联网科技有限公司 · 海淀区</div>
            <div class="similar-job-meta">
                <span>18k-28k</span>
                <span>·</span>
                <span>3-5年</span>
                <span>·</span>
                <span>本科</span>
            </div>
        </div>
        
        <div class="job-card">
            <div class="similar-job-title">前端技术专家</div>
            <div class="similar-job-company">软件开发有限公司 · 西城区</div>
            <div class="similar-job-meta">
                <span>25k-40k</span>
                <span>·</span>
                <span>5-10年</span>
                <span>·</span>
                <span>本科</span>
            </div>
        </div>
        
        <div class="job-card">
            <div class="similar-job-title">React前端开发工程师</div>
            <div class="similar-job-company">数据服务有限公司 · 朝阳区</div>
            <div class="similar-job-meta">
                <span>16k-24k</span>
                <span>·</span>
                <span>2-4年</span>
                <span>·</span>
                <span>本科</span>
            </div>
        </div>
    </div>
    
    <!-- 留言区 -->
    <div class="comments-section">
        <div class="comments-header">
            <div class="comments-count">求职者留言 (12)</div>
            <button class="sort-comments">
                <span>最新</span>
                <i class="fas fa-chevron-down"></i>
            </button>
        </div>
        
        <div class="comment-input-container">
            <div class="user-avatar">
                <img src="https://picsum.photos/id/64/200/200" alt="用户头像">
            </div>
            <div class="comment-input-wrapper">
                <textarea class="comment-input" placeholder="有什么想了解的？问问招聘方吧..."></textarea>
                <div class="comment-actions">
                    <button class="comment-action">
                        <i class="fas fa-image"></i>
                    </button>
                    <button class="comment-action comment-submit">发送</button>
                </div>
            </div>
        </div>
        
        <div class="comment-list">
            <!-- 评论1 -->
            <div class="comment-item">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/91/200/200" alt="用户头像">
                </div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">李明远</div>
                        <div class="comment-time">2小时前</div>
                    </div>
                    <div class="comment-text">请问贵公司使用的是React还是Vue技术栈？是否有使用TypeScript？</div>
                    <div class="comment-footer">
                        <button class="comment-action-btn">
                            <i class="far fa-thumbs-up"></i>
                            <span>5</span>
                        </button>
                        <button class="comment-action-btn reply-btn">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </button>
                    </div>
                    
                    <!-- 回复区 -->
                    <div class="replies">
                        <div class="reply-item">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/id/28/200/200" alt="公司头像">
                            </div>
                            <div class="reply-content">
                                <div class="reply-header">
                                    <div class="reply-author">科技有限公司-招聘官</div>
                                    <div class="reply-time">1小时前</div>
                                </div>
                                <div class="reply-text">我们主要使用React技术栈，新项目已经全面采用TypeScript开发。</div>
                                <div class="reply-footer">
                                    <button class="comment-action-btn">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>2</span>
                                    </button>
                                    <button class="comment-action-btn reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 回复输入框 (默认隐藏) -->
                    <div class="reply-form" style="display: none;">
                        <input type="text" class="reply-input" placeholder="回复 @李明远...">
                        <button class="reply-submit">发送</button>
                    </div>
                </div>
            </div>
            
            <!-- 评论2 -->
            <div class="comment-item">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/65/200/200" alt="用户头像">
                </div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">张雨晴</div>
                        <div class="comment-time">昨天 15:30</div>
                    </div>
                    <div class="comment-text">请问这个职位是 onsite 还是可以远程工作呢？每周工作几天？</div>
                    <div class="comment-footer">
                        <button class="comment-action-btn active">
                            <i class="fas fa-thumbs-up"></i>
                            <span>12</span>
                        </button>
                        <button class="comment-action-btn reply-btn">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </button>
                    </div>
                    
                    <!-- 回复区 -->
                    <div class="replies">
                        <div class="reply-item">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/id/28/200/200" alt="公司头像">
                            </div>
                            <div class="reply-content">
                                <div class="reply-header">
                                    <div class="reply-author">科技有限公司-招聘官</div>
                                    <div class="reply-time">昨天 16:45</div>
                                </div>
                                <div class="reply-text">目前是onsite工作，每周5天，特殊情况可以申请远程。我们实行弹性工作制度，不需要严格打卡。</div>
                                <div class="reply-footer">
                                    <button class="comment-action-btn">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>3</span>
                                    </button>
                                    <button class="comment-action-btn reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <div class="reply-item">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/id/65/200/200" alt="用户头像">
                            </div>
                            <div class="reply-content">
                                <div class="reply-header">
                                    <div class="reply-author">张雨晴</div>
                                    <div class="reply-time">昨天 17:20</div>
                                </div>
                                <div class="reply-text">@科技有限公司-招聘官 请问弹性工作是几点到几点之间呢？</div>
                                <div class="reply-footer">
                                    <button class="comment-action-btn">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>1</span>
                                    </button>
                                    <button class="comment-action-btn reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 回复输入框 (默认隐藏) -->
                    <div class="reply-form" style="display: none;">
                        <input type="text" class="reply-input" placeholder="回复 @张雨晴...">
                        <button class="reply-submit">发送</button>
                    </div>
                </div>
            </div>
            
            <!-- 评论3 -->
            <div class="comment-item">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/22/200/200" alt="用户头像">
                </div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">王佳宁</div>
                        <div class="comment-time">3天前</div>
                    </div>
                    <div class="comment-text">公司的晋升机制是怎样的？技术路线和管理路线可以自由选择吗？</div>
                    <div class="comment-footer">
                        <button class="comment-action-btn">
                            <i class="far fa-thumbs-up"></i>
                            <span>8</span>
                        </button>
                        <button class="comment-action-btn reply-btn">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </button>
                    </div>
                    
                    <!-- 回复输入框 (默认隐藏) -->
                    <div class="reply-form" style="display: none;">
                        <input type="text" class="reply-input" placeholder="回复 @王佳宁...">
                        <button class="reply-submit">发送</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="contact-bar">
        <div class="action-buttons">
            <button class="action-btn" id="homeBtn">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </button>
            <button class="action-btn" id="collectBtn">
                <i class="far fa-bookmark"></i>
                <span>收藏</span>
            </button>
            <button class="action-btn" id="reportBtn">
                <i class="fas fa-flag"></i>
                <span>举报</span>
            </button>
        </div>
        <button class="contact-btn" id="applyBtn">
            <i class="fas fa-paper-plane"></i>
            <span>立即申请</span>
        </button>
    </div>
    
    <!-- 分享弹窗 -->
    <div class="modal-overlay" id="shareOverlay"></div>
    <div class="share-modal" id="shareModal">
        <div class="modal-title">分享职位</div>
        <div class="share-options">
            <a href="#" class="share-option">
                <div class="share-icon" style="color: #07C160;">
                    <i class="fas fa-weixin"></i>
                </div>
                <span>微信</span>
            </a>
            <a href="#" class="share-option">
                <div class="share-icon" style="color: #1296DB;">
                    <i class="fas fa-qq"></i>
                </div>
                <span>QQ</span>
            </a>
            <a href="#" class="share-option">
                <div class="share-icon" style="color: #E6162D;">
                    <i class="fas fa-weibo"></i>
                </div>
                <span>微博</span>
            </a>
            <a href="#" class="share-option">
                <div class="share-icon" style="color: #666666;">
                    <i class="fas fa-link"></i>
                </div>
                <span>复制链接</span>
            </a>
            <a href="#" class="share-option">
                <div class="share-icon" style="color: #FF7D00;">
                    <i class="fas fa-envelope"></i>
                </div>
                <span>邮件</span>
            </a>
        </div>
        <button class="cancel-share" id="cancelShare">取消</button>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const shareBtn = document.getElementById('shareBtn');
        const shareModal = document.getElementById('shareModal');
        const shareOverlay = document.getElementById('shareOverlay');
        const cancelShare = document.getElementById('cancelShare');
        const collectBtn = document.getElementById('collectBtn');
        const applyBtn = document.getElementById('applyBtn');
        const reportBtn = document.getElementById('reportBtn');
        const homeBtn = document.getElementById('homeBtn');
        const replyBtns = document.querySelectorAll('.reply-btn');
        const commentSubmit = document.querySelector('.comment-submit');
        const replySubmits = document.querySelectorAll('.reply-submit');
        const likeBtns = document.querySelectorAll('.comment-action-btn');
        const sortComments = document.querySelector('.sort-comments');
        
        // 返回按钮
        backBtn.addEventListener('click', function() {
            history.back();
        });
        
        // 分享功能
        shareBtn.addEventListener('click', function() {
            shareModal.classList.add('open');
            shareOverlay.classList.add('show');
        });
        
        cancelShare.addEventListener('click', closeShareModal);
        shareOverlay.addEventListener('click', closeShareModal);
        
        function closeShareModal() {
            shareModal.classList.remove('open');
            shareOverlay.classList.remove('show');
        }
        
        // 收藏功能
        collectBtn.addEventListener('click', function() {
            const icon = this.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                this.classList.add('active');
                showToast('已收藏该职位');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                this.classList.remove('active');
                showToast('已取消收藏');
            }
        });
        
        // 申请职位
        applyBtn.addEventListener('click', function() {
            showToast('申请已发送，等待企业回复');
        });
        
        // 举报功能
        reportBtn.addEventListener('click', function() {
            showToast('举报已提交，我们会尽快处理');
        });
        
        // 返回首页
        homeBtn.addEventListener('click', function() {
            // 实际应用中跳转到首页
            showToast('返回首页');
        });
        
        // 回复功能
        replyBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                // 找到对应的回复框
                const commentItem = this.closest('.comment-item, .reply-item');
                const replyForm = commentItem.nextElementSibling;
                
                // 隐藏所有回复框
                document.querySelectorAll('.reply-form').forEach(form => {
                    form.style.display = 'none';
                });
                
                // 显示当前回复框
                if (replyForm && replyForm.classList.contains('reply-form')) {
                    replyForm.style.display = 'flex';
                    replyForm.querySelector('.reply-input').focus();
                } else {
                    // 如果没有回复框，则创建一个
                    const newReplyForm = document.createElement('div');
                    newReplyForm.className = 'reply-form';
                    newReplyForm.innerHTML = `
                        <input type="text" class="reply-input" placeholder="回复 @${commentItem.querySelector('.comment-author, .reply-author').textContent}...">
                        <button class="reply-submit">发送</button>
                    `;
                    commentItem.parentNode.insertBefore(newReplyForm, commentItem.nextSibling);
                    newReplyForm.style.display = 'flex';
                    newReplyForm.querySelector('.reply-input').focus();
                    
                    // 为新创建的回复按钮添加事件
                    newReplyForm.querySelector('.reply-submit').addEventListener('click', function() {
                        const replyText = this.previousElementSibling.value.trim();
                        if (replyText) {
                            showToast('回复成功');
                            newReplyForm.style.display = 'none';
                            this.previousElementSibling.value = '';
                        }
                    });
                }
            });
        });
        
        // 提交评论
        commentSubmit.addEventListener('click', function() {
            const commentText = this.closest('.comment-input-wrapper').querySelector('.comment-input').value.trim();
            if (commentText) {
                showToast('评论成功');
                this.closest('.comment-input-wrapper').querySelector('.comment-input').value = '';
            } else {
                showToast('请输入评论内容');
            }
        });
        
        // 提交回复
        replySubmits.forEach(btn => {
            btn.addEventListener('click', function() {
                const replyText = this.previousElementSibling.value.trim();
                if (replyText) {
                    showToast('回复成功');
                    this.closest('.reply-form').style.display = 'none';
                    this.previousElementSibling.value = '';
                } else {
                    showToast('请输入回复内容');
                }
            });
        });
        
        // 点赞功能
        likeBtns.forEach(btn => {
            if (btn.querySelector('.fa-thumbs-up')) {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countEl = this.querySelector('span');
                    let count = parseInt(countEl.textContent);
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('active');
                        countEl.textContent = count + 1;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('active');
                        countEl.textContent = count - 1;
                    }
                });
            }
        });
        
        // 评论排序
        sortComments.addEventListener('click', function() {
            const sortText = this.querySelector('span');
            if (sortText.textContent === '最新') {
                sortText.textContent = '最热';
                showToast('已按热度排序');
            } else {
                sortText.textContent = '最新';
                showToast('已按最新排序');
            }
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
        
        // 点击页面其他地方关闭回复框
        document.addEventListener('click', function(e) {
            if (!e.target.closest('.reply-btn') && !e.target.closest('.reply-form')) {
                document.querySelectorAll('.reply-form').forEach(form => {
                    form.style.display = 'none';
                });
            }
        });
    </script>
</body>
</html>

